
//document.write(" < script language = javascript src = './dream-msg.min.jss' >< / script>");
function f1(i) {
    function vibration() {
        navigator.vibrate = navigator.vibrate || navigator.webkitVibrate || navigator.mozVibrate || navigator.msVibrate;
        if (navigator.vibrate) {
            return true;
            
        }else{
            return false;
            
        }
    }

    switch (i){
        case 1:
            console.log("点击了按钮"+i);
            var mp3 = new Audio('../audios/info1.mp3') // 创建音频对象
            //let mp3 = new Audio('https://downsc.chinaz.net/Files/DownLoad/sound1/202209/y1197.mp3') // 创建音频对象
            //mp3.loop = true
            mp3.play() // 播放



            if (vibration()==true){
                navigator.vibrate([100,150,100]);
            }else{
                //alert("设备不支持震动测试")
            }



            Dreamer.info("您有一条新消息待处理，请及时查收！",0)
            break;
        
        case 2:
            console.log("点击了按钮"+i);
            var mp3 = new Audio('../audios/info1.mp3') // 创建音频对象
            //let mp3 = new Audio('https://downsc.chinaz.net/Files/DownLoad/sound1/202209/y1197.mp3') // 创建音频对象
            //mp3.loop = true
            mp3.play() // 播放


            if (vibration()==true){
                navigator.vibrate([100,150,100]);
            }else{
                //alert("设备不支持震动测试")
            }


            Dreamer.success("登录成功！",1800)


            break;
        
        case 3:
            console.log("点击了按钮"+i);
            var mp3 = new Audio('../audios/warning1.mp3') // 创建音频对象
            //let mp3 = new Audio('https://downsc.chinaz.net/Files/DownLoad/sound1/202209/y1197.mp3') // 创建音频对象
            //mp3.loop = true
            mp3.play() // 播放



            if (vibration()==true){
                navigator.vibrate([100,150,100]);
            }else{
                //alert("设备不支持震动测试")
            }


            Dreamer.warning("轨迹偏离警告！",1800)
            break;
        
        case 4:
            console.log("点击了按钮"+i);
            var mp3 = new Audio('../audios/warning2.mp3') // 创建音频对象
            //let mp3 = new Audio('https://downsc.chinaz.net/Files/DownLoad/sound1/202209/y1197.mp3') // 创建音频对象
            //mp3.loop = true
            mp3.play() // 播放



            if (vibration()==true){
                navigator.vibrate([100,150,100]);
            }else{
                //alert("设备不支持震动测试")
            }


            Dreamer.error("未知错误！",1800)
            break;
        
        case 5:
            console.log("点击了按钮"+i);
            var mp3 = new Audio('../audios/warning1.mp3') // 创建音频对象
            //let mp3 = new Audio('https://downsc.chinaz.net/Files/DownLoad/sound1/202209/y1197.mp3') // 创建音频对象
            //mp3.loop = true
            mp3.play() // 播放


            if (vibration()==true){
                navigator.vibrate([100,150,100]);
            }else{
                //alert("设备不支持震动测试")
            }



            //Dreamer.loading("加载中...") 不会自动消失
            var closeMsg = Dreamer.loading("加载中，请稍后");
            setTimeout(function(){
                closeMsg();
            }, 2000);
            break;
        
        case 6:
            console.log("点击了按钮"+i);
            //var mp3 = new Audio('../audios/warning1.mp3') // 创建音频对象
            var mp3 = new Audio('https://downsc.chinaz.net/Files/DownLoad/sound1/202209/y1197.mp3') // 创建音频对象
            //mp3.loop = true
            mp3.play() // 播放


            if (vibration()==true){
                navigator.vibrate([100,150,100]);
            }else{
                //alert("设备不支持震动测试")
            }


            
            Dreamer.info("您有一条新消息待处理，请及时查收！",0)
            break;
        
        case 7:
            console.log("点击了按钮"+i);
            //var mp3 = new Audio('../audios/warning1.mp3') // 创建音频对象
            var mp3 = new Audio('https://downsc.chinaz.net/Files/DownLoad/sound1/202209/y1197.mp3') // 创建音频对象
            //mp3.loop = true
            mp3.play() // 播放


            if (vibration()==true){
                navigator.vibrate([100,150,100]);
            }else{
                //alert("设备不支持震动测试")
            }


            
            Dreamer.success("注册成功！",1800)
            break;
        
        case 8:
            console.log("点击了按钮"+i);
            //var mp3 = new Audio('../audios/warning1.mp3') // 创建音频对象
            var mp3 = new Audio('https://downsc.chinaz.net/Files/DownLoad/sound1/202209/y1197.mp3') // 创建音频对象
            //mp3.loop = true
            mp3.play() // 播放


            if (vibration()==true){
                navigator.vibrate([100,150,100]);
            }else{
                //alert("设备不支持震动测试")
            }


            
            Dreamer.warning("您有一条新消息待处理，请及时查收！",1800)
            break;
        
        case 9:
            console.log("点击了按钮"+i);
            //var mp3 = new Audio('../audios/warning1.mp3') // 创建音频对象
            var mp3 = new Audio('https://downsc.chinaz.net/Files/DownLoad/sound1/202209/y1197.mp3') // 创建音频对象
            //mp3.loop = true
            mp3.play() // 播放


            if (vibration()==true){
                navigator.vibrate([100,150,100]);
            }else{
                //alert("设备不支持震动测试")
            }


            
            Dreamer.error("错误码 12-8F7！",1800)
            break;
        
        case 10:
            console.log("点击了按钮"+i);
            //var mp3 = new Audio('../audios/warning1.mp3') // 创建音频对象
            var mp3 = new Audio('https://downsc.chinaz.net/Files/DownLoad/sound1/202209/y1197.mp3') // 创建音频对象
            //mp3.loop = true
            mp3.play() // 播放


            if (vibration()==true){
                navigator.vibrate([100,150,100]);
            }else{
                //alert("设备不支持震动测试")
            }


            
            var closeMsg = Dreamer.loading("加载中，请稍后");
            setTimeout(function(){
                closeMsg();
            }, 2000);
            break;
        default:
            alert("按钮参数错误")
        
    }
}
